/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 警告框 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.help-text {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4A6572;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #344955;
}

.btn.primary {
    background-color: #3498db;
}

.btn.primary:hover {
    background-color: #2980b9;
}

.btn.small {
    padding: 5px 10px;
    font-size: 14px;
}

/* 文件列表 */
.file-list {
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f1f1;
}

/* 空状态 */
.empty-message {
    text-align: center;
    padding: 30px;
    color: #777;
    font-size: 18px;
    margin-top: 30px;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* 文件详情页 */
.file-info {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 30px;
}

.file-info p {
    margin-bottom: 10px;
}

.preview-area {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.preview-area h3 {
    margin-bottom: 15px;
    color: #4A6572;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

.text-preview pre {
    background-color: #f5f5f5;
    padding: 15px;
    overflow: auto;
    max-height: 400px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}